package com.ep.commonbaseadapter;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import android.widget.TextView;

import com.ep.commonbaseadapter.bean.ChatMessage;
import com.ep.commonbaseadapter.multi.ChatMultiAdapter;

/**
 * Created by Administrator on 2017/7/31.
 */

public class MultiActivity extends AppCompatActivity {
    private ListView mListView;
    private TextView mTvEmptyView;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_multi);
        mListView= (ListView) findViewById(R.id.lv_multi);
        mTvEmptyView= (TextView) findViewById(R.id.tv_empty);

        mListView.setDivider(null);
        mListView.setEmptyView(mTvEmptyView);
        ChatMultiAdapter chatMultiAdapter = new ChatMultiAdapter(this);
        chatMultiAdapter.setDatas(ChatMessage.MOCK_DATAS);
        mListView.setAdapter(chatMultiAdapter);


    }
}
